home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / gfx / x11 / Xincludes_930531.lha / os-include_x11.lha / os-include / X11 / Intrinsic.h < prev    next >
C/C++ Source or Header  |  1992-11-02  |  64KB  |  2,789 lines

  1. /* $XConsortium: Intrinsic.h,v 1.174 91/09/09 16:25:56 converse Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.             All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #ifndef _XtIntrinsic_h
  28. #define _XtIntrinsic_h
  29.  
  30. #include    <X11/Xlib.h>
  31. #include    <X11/Xutil.h>
  32. #include    <X11/Xresource.h>
  33. #include    <X11/Xfuncproto.h>
  34. #ifdef XT_BC
  35. #include <X11/Xos.h>        /* for R4 compatibility */
  36. #else
  37. #include <X11/Xosdefs.h>
  38. #ifndef X_NOT_STDC_ENV
  39. #include <string.h>        /* for XtNewString */
  40. #else
  41. #ifdef SYSV
  42. #include <string.h>
  43. #else
  44. #include <strings.h>
  45. #endif /* SYSV else */
  46. #endif /* !X_NOT_STDC_ENV else */
  47. #endif /* XT_BC else */
  48.  
  49. #define XtSpecificationRelease 5
  50.  
  51. typedef char *String;
  52.  
  53. #if NeedFunctionPrototypes
  54.  
  55. /* We do this in order to get "const" declarations to work right.  We
  56.  * use _XtString instead of String so that C++ applications can
  57.  * #define String to something else if they choose, to avoid conflicts
  58.  * with other C++ libraries.
  59.  */
  60. #define _XtString char*
  61.  
  62. /* _Xt names are private to Xt implementation, do not use in client code */
  63. #if NeedWidePrototypes
  64. #define _XtBoolean    int
  65. #define _XtDimension    unsigned int
  66. #define _XtKeyCode    unsigned int
  67. #define _XtPosition    int
  68. #define _XtXtEnum    unsigned int
  69. #else
  70. #define _XtBoolean    Boolean
  71. #define _XtDimension    Dimension
  72. #define _XtKeyCode    KeyCode
  73. #define _XtPosition    Position
  74. #define _XtXtEnum    XtEnum
  75. #endif /* NeedWidePrototypes */
  76.  
  77. #endif /* NeedFunctionPrototypes */
  78.  
  79. #ifndef NULL
  80. #define NULL 0
  81. #endif
  82.  
  83. #ifdef VMS
  84. #define externalref globalref
  85. #define externaldef(psect) globaldef {"psect"} noshare
  86. #else
  87. #define externalref extern
  88. #define externaldef(psect)
  89. #endif /* VMS */
  90.  
  91. #ifndef FALSE
  92. #define FALSE 0
  93. #define TRUE 1
  94. #endif
  95.  
  96. #define XtNumber(arr)        ((Cardinal) (sizeof(arr) / sizeof(arr[0])))
  97.  
  98. typedef struct _WidgetRec *Widget;
  99. typedef Widget *WidgetList;
  100. typedef struct _WidgetClassRec *WidgetClass;
  101. typedef struct _CompositeRec *CompositeWidget;
  102. typedef struct _XtActionsRec *XtActionList;
  103. typedef struct _XtEventRec *XtEventTable;
  104. typedef struct _XtBoundAccActionRec *XtBoundAccActions;
  105.  
  106. typedef struct _XtAppStruct *XtAppContext;
  107. typedef unsigned long    XtValueMask;
  108. typedef unsigned long    XtIntervalId;
  109. typedef unsigned long    XtInputId;
  110. typedef unsigned long    XtWorkProcId;
  111. typedef unsigned int    XtGeometryMask;
  112. typedef unsigned long    XtGCMask;   /* Mask of values that are used by widget*/
  113. typedef unsigned long    Pixel;        /* Index into colormap        */
  114. typedef int        XtCacheType;
  115. #define            XtCacheNone      0x001
  116. #define            XtCacheAll      0x002
  117. #define            XtCacheByDisplay  0x003
  118. #define            XtCacheRefCount      0x100
  119.  
  120. /****************************************************************
  121.  *
  122.  * System Dependent Definitions; see spec for specific range
  123.  * requirements.  Do not assume every implementation uses the
  124.  * same base types!
  125.  *
  126.  *
  127.  * XtArgVal ought to be a union of XtPointer, char *, long, int *, and proc *
  128.  * but casting to union types is not really supported.
  129.  *
  130.  * So the typedef for XtArgVal should be chosen such that
  131.  *
  132.  *    sizeof (XtArgVal) >=    sizeof(XtPointer)
  133.  *                sizeof(char *)
  134.  *                sizeof(long)
  135.  *                sizeof(int *)
  136.  *                sizeof(proc *)
  137.  *
  138.  * ArgLists rely heavily on the above typedef.
  139.  *
  140.  ****************************************************************/
  141. #ifdef CRAY
  142. typedef long        Boolean;
  143. typedef char*        XtArgVal;
  144. typedef long        XtEnum;
  145. #else
  146. typedef char        Boolean;
  147. typedef long        XtArgVal;
  148. typedef unsigned char    XtEnum;
  149. #endif
  150.  
  151. typedef unsigned int    Cardinal;
  152. typedef unsigned short    Dimension;  /* Size in pixels            */
  153. typedef short        Position;   /* Offset from 0 coordinate        */
  154.  
  155. #if NeedFunctionPrototypes
  156. typedef void*        XtPointer;
  157. #else
  158. typedef char*        XtPointer;
  159. #endif
  160.  
  161. /* The type Opaque is NOT part of the Xt standard, do NOT use it. */
  162. /* (It remains here only for backward compatibility.) */
  163. typedef XtPointer    Opaque;
  164.  
  165. #include <X11/Core.h>
  166. #include <X11/Composite.h>
  167. #include <X11/Constraint.h>
  168. #include <X11/Object.h>
  169. #include <X11/RectObj.h>
  170.  
  171. typedef struct _TranslationData *XtTranslations;
  172. typedef struct _TranslationData *XtAccelerators;
  173. typedef unsigned int Modifiers;
  174.  
  175. typedef void (*XtActionProc)(
  176. #if NeedFunctionPrototypes
  177.     Widget         /* widget */,
  178.     XEvent*        /* event */,
  179.     String*        /* params */,
  180.     Cardinal*        /* num_params */
  181. #endif
  182. );
  183.  
  184. typedef XtActionProc* XtBoundActions;
  185.  
  186. typedef struct _XtActionsRec{
  187.     String     string;
  188.     XtActionProc proc;
  189. } XtActionsRec;
  190.  
  191. typedef enum {
  192. /* address mode        parameter representation    */
  193. /* ------------        ------------------------    */
  194.     XtAddress,        /* address            */
  195.     XtBaseOffset,    /* offset            */
  196.     XtImmediate,    /* constant            */
  197.     XtResourceString,    /* resource name string        */
  198.     XtResourceQuark,    /* resource name quark        */
  199.     XtWidgetBaseOffset,    /* offset from ancestor        */
  200.     XtProcedureArg    /* procedure to invoke        */
  201. } XtAddressMode;
  202.  
  203. typedef struct {
  204.     XtAddressMode   address_mode;
  205.     XtPointer        address_id;
  206.     Cardinal        size;
  207. } XtConvertArgRec, *XtConvertArgList;
  208.  
  209. typedef void (*XtConvertArgProc)(
  210. #if NeedFunctionPrototypes
  211.     Widget         /* widget */,
  212.     Cardinal*        /* size */,
  213.     XrmValue*        /* value */
  214. #endif
  215. );
  216.  
  217. typedef struct {
  218.     XtGeometryMask request_mode;
  219.     Position x, y;
  220.     Dimension width, height, border_width;
  221.     Widget sibling;
  222.     int stack_mode;   /* Above, Below, TopIf, BottomIf, Opposite, DontChange */
  223. } XtWidgetGeometry;
  224.  
  225. /* Additions to Xlib geometry requests: ask what would happen, don't do it */
  226. #define XtCWQueryOnly    (1 << 7)
  227.  
  228. /* Additions to Xlib stack modes: don't change stack order */
  229. #define XtSMDontChange    5
  230.  
  231. typedef void (*XtConverter)( /* obsolete */
  232. #if NeedFunctionPrototypes
  233.     XrmValue*        /* args */,
  234.     Cardinal*        /* num_args */,
  235.     XrmValue*        /* from */,
  236.     XrmValue*        /* to */
  237. #endif
  238. );
  239.  
  240. typedef Boolean (*XtTypeConverter)(
  241. #if NeedFunctionPrototypes
  242.     Display*        /* dpy */,
  243.     XrmValue*        /* args */,
  244.     Cardinal*        /* num_args */,
  245.     XrmValue*        /* from */,
  246.     XrmValue*        /* to */,
  247.     XtPointer*        /* converter_data */
  248. #endif
  249. );
  250.  
  251. typedef void (*XtDestructor)(
  252. #if NeedFunctionPrototypes
  253.     XtAppContext    /* app */,
  254.     XrmValue*        /* to */,
  255.     XtPointer         /* converter_data */,
  256.     XrmValue*        /* args */,
  257.     Cardinal*        /* num_args */
  258. #endif
  259. );
  260.  
  261. typedef Opaque XtCacheRef;
  262.  
  263. typedef Opaque XtActionHookId;
  264.  
  265. typedef void (*XtActionHookProc)(
  266. #if NeedFunctionPrototypes
  267.     Widget        /* w */,
  268.     XtPointer        /* client_data */,
  269.     String        /* action_name */,
  270.     XEvent*        /* event */,
  271.     String*        /* params */,
  272.     Cardinal*        /* num_params */
  273. #endif
  274. );
  275.  
  276. typedef void (*XtKeyProc)(
  277. #if NeedFunctionPrototypes
  278.     Display*        /* dpy */,
  279.     _XtKeyCode         /* keycode */,
  280.     Modifiers        /* modifiers */,
  281.     Modifiers*        /* modifiers_return */,
  282.     KeySym*        /* keysym_return */
  283. #endif
  284. );
  285.  
  286. typedef void (*XtCaseProc)(
  287. #if NeedFunctionPrototypes
  288.     Display*        /* display */,
  289.     KeySym        /* keysym */,
  290.     KeySym*        /* lower_return */,
  291.     KeySym*        /* upper_return */
  292. #endif
  293. );
  294.  
  295. typedef void (*XtEventHandler)(
  296. #if NeedFunctionPrototypes
  297.     Widget         /* widget */,
  298.     XtPointer         /* closure */,
  299.     XEvent*        /* event */,
  300.     Boolean*        /* continue_to_dispatch */
  301. #endif
  302. );
  303. typedef unsigned long EventMask;
  304.  
  305. typedef enum {XtListHead, XtListTail } XtListPosition;
  306.  
  307. typedef unsigned long    XtInputMask;
  308. #define XtInputNoneMask        0L
  309. #define XtInputReadMask        (1L<<0)
  310. #define XtInputWriteMask    (1L<<1)
  311. #define XtInputExceptMask    (1L<<2)
  312.  
  313. typedef void (*XtTimerCallbackProc)(
  314. #if NeedFunctionPrototypes
  315.     XtPointer         /* closure */,
  316.     XtIntervalId*    /* id */
  317. #endif
  318. );
  319.  
  320. typedef void (*XtInputCallbackProc)(
  321. #if NeedFunctionPrototypes
  322.     XtPointer         /* closure */,
  323.     int*        /* source */,
  324.     XtInputId*        /* id */
  325. #endif
  326. );
  327.  
  328. typedef struct {
  329.     String    name;
  330.     XtArgVal    value;
  331. } Arg, *ArgList;
  332.  
  333. typedef XtPointer    XtVarArgsList;
  334.  
  335. typedef void (*XtCallbackProc)(
  336. #if NeedFunctionPrototypes
  337.     Widget         /* widget */,
  338.     XtPointer         /* closure */,    /* data the application registered */
  339.     XtPointer         /* call_data */    /* callback specific data */
  340. #endif
  341. );
  342.  
  343. typedef struct _XtCallbackRec {
  344.     XtCallbackProc  callback;
  345.     XtPointer        closure;
  346. } XtCallbackRec, *XtCallbackList;
  347.  
  348. typedef enum {
  349.     XtCallbackNoList,
  350.     XtCallbackHasNone,
  351.     XtCallbackHasSome
  352. } XtCallbackStatus;
  353.  
  354. typedef enum  {
  355.     XtGeometryYes,      /* Request accepted. */
  356.     XtGeometryNo,      /* Request denied. */
  357.     XtGeometryAlmost,      /* Request denied, but willing to take replyBox. */
  358.     XtGeometryDone      /* Request accepted and done. */
  359. } XtGeometryResult;
  360.  
  361. typedef enum {XtGrabNone, XtGrabNonexclusive, XtGrabExclusive} XtGrabKind;
  362.  
  363. typedef struct {
  364.     Widget  shell_widget;
  365.     Widget  enable_widget;
  366. } XtPopdownIDRec, *XtPopdownID;
  367.  
  368. typedef struct _XtResource {
  369.     String    resource_name;    /* Resource name                */
  370.     String    resource_class;    /* Resource class                */
  371.     String    resource_type;    /* Representation type desired            */
  372.     Cardinal    resource_size;    /* Size in bytes of representation        */
  373.     Cardinal    resource_offset;/* Offset from base to put resource value   */
  374.     String    default_type;    /* representation type of specified default */
  375.     XtPointer    default_addr;    /* Address of default resource            */
  376. } XtResource, *XtResourceList;
  377.  
  378. typedef void (*XtResourceDefaultProc)(
  379. #if NeedFunctionPrototypes
  380.     Widget    /* widget */,
  381.     int        /* offset */,
  382.     XrmValue*    /* value */
  383. #endif
  384. );
  385.  
  386. typedef String (*XtLanguageProc)(
  387. #if NeedFunctionPrototypes
  388.     Display*    /* dpy */,
  389.     String    /* xnl */,
  390.     XtPointer    /* client_data */
  391. #endif
  392. );
  393.  
  394. typedef void (*XtErrorMsgHandler)(
  395. #if NeedFunctionPrototypes
  396.     String         /* name */,
  397.     String        /* type */,
  398.     String        /* class */,
  399.     String        /* default */,
  400.     String*        /* params */,
  401.     Cardinal*        /* num_params */
  402. #endif
  403. );
  404.  
  405. typedef void (*XtErrorHandler)(
  406. #if NeedFunctionPrototypes
  407.   String        /* msg */
  408. #endif
  409. );
  410.  
  411. typedef void (*XtCreatePopupChildProc)(
  412. #if NeedFunctionPrototypes
  413.     Widget    /* shell */
  414. #endif
  415. );
  416.  
  417. typedef Boolean (*XtWorkProc)(
  418. #if NeedFunctionPrototypes
  419.     XtPointer         /* closure */    /* data the application registered */
  420. #endif
  421. );
  422.  
  423. typedef struct {
  424.     char match;
  425.     String substitution;
  426. } SubstitutionRec, *Substitution;
  427.  
  428. typedef Boolean (*XtFilePredicate)(
  429. #if NeedFunctionPrototypes
  430.    String /* filename */
  431. #endif
  432. );
  433.  
  434. typedef XtPointer XtRequestId;
  435.  
  436. typedef Boolean (*XtConvertSelectionProc)(
  437. #if NeedFunctionPrototypes
  438.     Widget         /* widget */,
  439.     Atom*        /* selection */,
  440.     Atom*        /* target */,
  441.     Atom*        /* type_return */,
  442.     XtPointer*        /* value_return */,
  443.     unsigned long*    /* length_return */,
  444.     int*        /* format_return */
  445. #endif
  446. );
  447.  
  448. typedef void (*XtLoseSelectionProc)(
  449. #if NeedFunctionPrototypes
  450.     Widget         /* widget */,
  451.     Atom*        /* selection */
  452. #endif
  453. );
  454.  
  455. typedef void (*XtSelectionDoneProc)(
  456. #if NeedFunctionPrototypes
  457.     Widget         /* widget */,
  458.     Atom*        /* selection */,
  459.     Atom*        /* target */
  460. #endif
  461. );
  462.  
  463. typedef void (*XtSelectionCallbackProc)(
  464. #if NeedFunctionPrototypes
  465.     Widget         /* widget */,
  466.     XtPointer         /* closure */,
  467.     Atom*        /* selection */,
  468.     Atom*        /* type */,
  469.     XtPointer         /* value */,
  470.     unsigned long*    /* length */,
  471.     int*        /* format */
  472. #endif
  473. );
  474.  
  475. typedef void (*XtLoseSelectionIncrProc)(
  476. #if NeedFunctionPrototypes
  477.     Widget         /* widget */,
  478.     Atom*        /* selection */,
  479.     XtPointer         /* client_data */
  480. #endif
  481. );
  482.  
  483. typedef void (*XtSelectionDoneIncrProc)(
  484. #if NeedFunctionPrototypes
  485.     Widget         /* widget */,
  486.     Atom*        /* selection */,
  487.     Atom*        /* target */,
  488.     XtRequestId*    /* receiver_id */,
  489.     XtPointer         /* client_data */
  490. #endif
  491. );
  492.  
  493. typedef Boolean (*XtConvertSelectionIncrProc)(
  494. #if NeedFunctionPrototypes
  495.     Widget         /* widget */,
  496.     Atom*        /* selection */,
  497.     Atom*        /* target */,
  498.     Atom*        /* type */,
  499.     XtPointer*        /* value */,
  500.     unsigned long*    /* length */,
  501.     int*        /* format */,
  502.     unsigned long*    /* max_length */,
  503.     XtPointer         /* client_data */,
  504.     XtRequestId*    /* receiver_id */
  505. #endif
  506. );
  507.  
  508. typedef void (*XtCancelConvertSelectionProc)(
  509. #if NeedFunctionPrototypes
  510.     Widget         /* widget */,
  511.     Atom*        /* selection */,
  512.     Atom*        /* target */,
  513.     XtRequestId*    /* receiver_id */,
  514.     XtPointer         /* client_data */
  515. #endif
  516. );
  517.  
  518. /***************************************************************
  519.  *
  520.  * Exported Interfaces
  521.  *
  522.  ****************************************************************/
  523.  
  524. _XFUNCPROTOBEGIN
  525.  
  526. extern Boolean XtConvertAndStore(
  527. #if NeedFunctionPrototypes
  528.     Widget         /* widget */,
  529.     _Xconst _XtString     /* from_type */,
  530.     XrmValue*        /* from */,
  531.     _Xconst _XtString     /* to_type */,
  532.     XrmValue*        /* to_in_out */
  533. #endif
  534. );
  535.  
  536. extern Boolean XtCallConverter(
  537. #if NeedFunctionPrototypes
  538.     Display*        /* dpy */,
  539.     XtTypeConverter     /* converter */,
  540.     XrmValuePtr     /* args */,
  541.     Cardinal         /* num_args */,
  542.     XrmValuePtr     /* from */,
  543.     XrmValue*        /* to_in_out */,
  544.     XtCacheRef*        /* cache_ref_return */
  545. #endif
  546. );
  547.  
  548. extern Boolean XtDispatchEvent(
  549. #if NeedFunctionPrototypes
  550.     XEvent*         /* event */
  551. #endif
  552. );
  553.  
  554. extern Boolean XtCallAcceptFocus(
  555. #if NeedFunctionPrototypes
  556.     Widget         /* widget */,
  557.     Time*        /* time */
  558. #endif
  559. );
  560.  
  561. extern Boolean XtPeekEvent( /* obsolete */
  562. #if NeedFunctionPrototypes
  563.     XEvent*        /* event_return */
  564. #endif
  565. );
  566.  
  567. extern Boolean XtAppPeekEvent(
  568. #if NeedFunctionPrototypes
  569.     XtAppContext     /* app_context */,
  570.     XEvent*        /* event_return */
  571. #endif
  572. );
  573.  
  574. extern Boolean XtIsSubclass(
  575. #if NeedFunctionPrototypes
  576.     Widget         /* widget */,
  577.     WidgetClass     /* widgetClass */
  578. #endif
  579. );
  580.  
  581. extern Boolean XtIsObject(
  582. #if NeedFunctionPrototypes
  583.     Widget         /* object */
  584. #endif
  585. );
  586.  
  587. extern Boolean _XtCheckSubclassFlag( /* implementation-private */
  588. #if NeedFunctionPrototypes
  589.     Widget        /* object */,
  590.     _XtXtEnum        /* type_flag */
  591. #endif
  592. );
  593.  
  594. extern Boolean _XtIsSubclassOf( /* implementation-private */
  595. #if NeedFunctionPrototypes
  596.     Widget        /* object */,
  597.     WidgetClass        /* widget_class */,
  598.     WidgetClass        /* flag_class */,
  599.     _XtXtEnum        /* type_flag */
  600. #endif
  601. );
  602.  
  603. extern Boolean XtIsManaged(
  604. #if NeedFunctionPrototypes
  605.     Widget         /* rectobj */
  606. #endif
  607. );
  608.  
  609. extern Boolean XtIsRealized(
  610. #if NeedFunctionPrototypes
  611.     Widget         /* widget */
  612. #endif
  613. );
  614.  
  615. extern Boolean XtIsSensitive(
  616. #if NeedFunctionPrototypes
  617.     Widget         /* widget */
  618. #endif
  619. );
  620.  
  621. extern Boolean XtOwnSelection(
  622. #if NeedFunctionPrototypes
  623.     Widget         /* widget */,
  624.     Atom         /* selection */,
  625.     Time         /* time */,
  626.     XtConvertSelectionProc /* convert */,
  627.     XtLoseSelectionProc    /* lose */,
  628.     XtSelectionDoneProc /* done */
  629. #endif
  630. );
  631.  
  632. extern Boolean XtOwnSelectionIncremental(
  633. #if NeedFunctionPrototypes
  634.     Widget         /* widget */,
  635.     Atom         /* selection */,
  636.     Time         /* time */,
  637.     XtConvertSelectionIncrProc    /* convert_callback */,
  638.     XtLoseSelectionIncrProc    /* lose_callback */,
  639.     XtSelectionDoneIncrProc    /* done_callback */,
  640.     XtCancelConvertSelectionProc /* cancel_callback */,
  641.     XtPointer         /* client_data */
  642. #endif
  643. );
  644.  
  645. extern XtGeometryResult XtMakeResizeRequest(
  646. #if NeedFunctionPrototypes
  647.     Widget         /* widget */,
  648.     _XtDimension    /* width */,
  649.     _XtDimension    /* height */,
  650.     Dimension*        /* width_return */,
  651.     Dimension*        /* height_return */
  652. #endif
  653. );
  654.  
  655. extern void XtTranslateCoords(
  656. #if NeedFunctionPrototypes
  657.     Widget         /* widget */,
  658.     _XtPosition        /* x */,
  659.     _XtPosition        /* y */,
  660.     Position*        /* rootx_return */,
  661.     Position*        /* rooty_return */
  662. #endif
  663. );
  664.  
  665. extern KeySym* XtGetKeysymTable(
  666. #if NeedFunctionPrototypes
  667.     Display*        /* dpy */,
  668.     KeyCode*        /* min_keycode_return */,
  669.     int*        /* keysyms_per_keycode_return */
  670. #endif
  671. );
  672.  
  673. extern void XtKeysymToKeycodeList(
  674. #if NeedFunctionPrototypes
  675.     Display*        /* dpy */,
  676.     KeySym         /* keysym */,
  677.     KeyCode**        /* keycodes_return */,
  678.     Cardinal*        /* keycount_return */
  679. #endif
  680. );
  681.  
  682. extern void XtStringConversionWarning( /* obsolete */
  683. #if NeedFunctionPrototypes
  684.     _Xconst _XtString    /* from_value */,
  685.     _Xconst _XtString    /* to_type */
  686. #endif
  687. );
  688.  
  689. extern void XtDisplayStringConversionWarning(
  690. #if NeedFunctionPrototypes
  691.     Display*         /* dpy */,
  692.     _Xconst _XtString    /* from_value */,
  693.     _Xconst _XtString    /* to_type */
  694. #endif
  695. );
  696.  
  697. #if __STDC__
  698. externalref XtConvertArgRec const colorConvertArgs[];
  699. externalref XtConvertArgRec const screenConvertArg[];
  700. #else
  701. externalref XtConvertArgRec colorConvertArgs[];
  702. externalref XtConvertArgRec screenConvertArg[];
  703. #endif
  704.  
  705. extern void XtAppAddConverter( /* obsolete */
  706. #if NeedFunctionPrototypes
  707.     XtAppContext    /* app_context */,
  708.     _Xconst _XtString    /* from_type */,
  709.     _Xconst _XtString    /* to_type */,
  710.     XtConverter     /* converter */,
  711.     XtConvertArgList    /* convert_args */,
  712.     Cardinal         /* num_args */
  713. #endif
  714. );
  715.  
  716. extern void XtAddConverter( /* obsolete */
  717. #if NeedFunctionPrototypes
  718.     _Xconst _XtString    /* from_type */,
  719.     _Xconst _XtString     /* to_type */,
  720.     XtConverter     /* converter */,
  721.     XtConvertArgList     /* convert_args */,
  722.     Cardinal         /* num_args */
  723. #endif
  724. );
  725.  
  726. extern void XtSetTypeConverter(
  727. #if NeedFunctionPrototypes
  728.     _Xconst _XtString     /* from_type */,
  729.     _Xconst _XtString     /* to_type */,
  730.     XtTypeConverter     /* converter */,
  731.     XtConvertArgList     /* convert_args */,
  732.     Cardinal         /* num_args */,
  733.     XtCacheType     /* cache_type */,
  734.     XtDestructor     /* destructor */
  735. #endif
  736. );
  737.  
  738. extern void XtAppSetTypeConverter(
  739. #if NeedFunctionPrototypes
  740.     XtAppContext     /* app_context */,
  741.     _Xconst _XtString     /* from_type */,
  742.     _Xconst _XtString     /* to_type */,
  743.     XtTypeConverter     /* converter */,
  744.     XtConvertArgList     /* convert_args */,
  745.     Cardinal         /* num_args */,
  746.     XtCacheType     /* cache_type */,
  747.     XtDestructor     /* destructor */
  748. #endif
  749. );
  750.  
  751. extern void XtConvert( /* obsolete */
  752. #if NeedFunctionPrototypes
  753.     Widget         /* widget */,
  754.     _Xconst _XtString     /* from_type */,
  755.     XrmValue*        /* from */,
  756.     _Xconst _XtString     /* to_type */,
  757.     XrmValue*        /* to_return */
  758. #endif
  759. );
  760.  
  761. extern void XtDirectConvert( /* obsolete */
  762. #if NeedFunctionPrototypes
  763.     XtConverter     /* converter */,
  764.     XrmValuePtr     /* args */,
  765.     Cardinal         /* num_args */,
  766.     XrmValuePtr     /* from */,
  767.     XrmValue*        /* to_return */
  768. #endif
  769. );
  770.  
  771. /****************************************************************
  772.  *
  773.  * Translation Management
  774.  *
  775.  ****************************************************************/
  776.  
  777. extern XtTranslations XtParseTranslationTable(
  778. #if NeedFunctionPrototypes
  779.     _Xconst _XtString    /* table */
  780. #endif
  781. );
  782.  
  783. extern XtAccelerators XtParseAcceleratorTable(
  784. #if NeedFunctionPrototypes
  785.     _Xconst _XtString    /* source */
  786. #endif
  787. );
  788.  
  789. extern void XtOverrideTranslations(
  790. #if NeedFunctionPrototypes
  791.     Widget         /* widget */,
  792.     XtTranslations     /* translations */
  793. #endif
  794. );
  795.  
  796. extern void XtAugmentTranslations(
  797. #if NeedFunctionPrototypes
  798.     Widget         /* widget */,
  799.     XtTranslations     /* translations */
  800. #endif
  801. );
  802.  
  803. extern void XtInstallAccelerators(
  804. #if NeedFunctionPrototypes
  805.     Widget         /* destination */,
  806.     Widget        /* source */
  807. #endif
  808. );
  809.  
  810. extern void XtInstallAllAccelerators(
  811. #if NeedFunctionPrototypes
  812.     Widget         /* destination */,
  813.     Widget        /* source */
  814. #endif
  815. );
  816.  
  817. extern void XtUninstallTranslations(
  818. #if NeedFunctionPrototypes
  819.     Widget         /* widget */
  820. #endif
  821. );
  822.  
  823. extern void XtAppAddActions(
  824. #if NeedFunctionPrototypes
  825.     XtAppContext     /* app_context */,
  826.     XtActionList     /* actions */,
  827.     Cardinal         /* num_actions */
  828. #endif
  829. );
  830.  
  831. extern void XtAddActions( /* obsolete */
  832. #if NeedFunctionPrototypes
  833.     XtActionList     /* actions */,
  834.     Cardinal         /* num_actions */
  835. #endif
  836. );
  837.  
  838. extern XtActionHookId XtAppAddActionHook(
  839. #if NeedFunctionPrototypes
  840.     XtAppContext     /* app_context */,
  841.     XtActionHookProc     /* proc */,
  842.     XtPointer         /* client_data */
  843. #endif
  844. );
  845.  
  846. extern void XtRemoveActionHook(
  847. #if NeedFunctionPrototypes
  848.     XtActionHookId     /* id */
  849. #endif
  850. );
  851.  
  852. extern void XtGetActionList(
  853. #if NeedFunctionPrototypes
  854.     WidgetClass        /* widget_class */,
  855.     XtActionList*    /* actions_return */,
  856.     Cardinal*        /* num_actions_return */
  857. #endif
  858. );
  859.  
  860. extern void XtCallActionProc(
  861. #if NeedFunctionPrototypes
  862.     Widget        /* widget */,
  863.     _Xconst _XtString    /* action */,
  864.     XEvent*        /* event */,
  865.     String*        /* params */,
  866.     Cardinal        /* num_params */
  867. #endif
  868. );
  869.  
  870. extern void XtRegisterGrabAction(
  871. #if NeedFunctionPrototypes
  872.     XtActionProc     /* action_proc */,
  873.     _XtBoolean         /* owner_events */,
  874.     unsigned int     /* event_mask */,
  875.     int            /* pointer_mode */,
  876.     int             /* keyboard_mode */
  877. #endif
  878. );
  879.  
  880. extern void XtSetMultiClickTime(
  881. #if NeedFunctionPrototypes
  882.     Display*        /* dpy */,
  883.     int         /* milliseconds */
  884. #endif
  885. );
  886.  
  887. extern int XtGetMultiClickTime(
  888. #if NeedFunctionPrototypes
  889.     Display*        /* dpy */
  890. #endif
  891. );
  892.  
  893. extern KeySym XtGetActionKeysym(
  894. #if NeedFunctionPrototypes
  895.     XEvent*        /* event */,
  896.     Modifiers*        /* modifiers_return */
  897. #endif
  898. );
  899.  
  900. /***************************************************************
  901.  *
  902.  * Keycode and Keysym procedures for translation management
  903.  *
  904.  ****************************************************************/
  905.  
  906. extern void XtTranslateKeycode(
  907. #if NeedFunctionPrototypes
  908.     Display*        /* dpy */,
  909.     _XtKeyCode         /* keycode */,
  910.     Modifiers         /* modifiers */,
  911.     Modifiers*        /* modifiers_return */,
  912.     KeySym*        /* keysym_return */
  913. #endif
  914. );
  915.  
  916. extern void XtTranslateKey(
  917. #if NeedFunctionPrototypes
  918.     Display*        /* dpy */,
  919.     _XtKeyCode        /* keycode */,
  920.     Modifiers        /* modifiers */,
  921.     Modifiers*        /* modifiers_return */,
  922.     KeySym*        /* keysym_return */
  923. #endif
  924. );
  925.  
  926. extern void XtSetKeyTranslator(
  927. #if NeedFunctionPrototypes
  928.     Display*        /* dpy */,
  929.     XtKeyProc         /* proc */
  930. #endif
  931. );
  932.  
  933. extern void XtRegisterCaseConverter(
  934. #if NeedFunctionPrototypes
  935.     Display*        /* dpy */,
  936.     XtCaseProc         /* proc */,
  937.     KeySym         /* start */,
  938.     KeySym         /* stop */
  939. #endif
  940. );
  941.  
  942. extern void XtConvertCase(
  943. #if NeedFunctionPrototypes
  944.     Display*        /* dpy */,
  945.     KeySym         /* keysym */,
  946.     KeySym*        /* lower_return */,
  947.     KeySym*        /* upper_return */
  948. #endif
  949. );
  950.  
  951. /****************************************************************
  952.  *
  953.  * Event Management
  954.  *
  955.  ****************************************************************/
  956.  
  957. /* XtAllEvents is valid only for XtRemoveEventHandler and
  958.  * XtRemoveRawEventHandler; don't use it to select events!
  959.  */
  960. #define XtAllEvents ((EventMask) -1L)
  961.  
  962. extern void XtAddEventHandler(
  963. #if NeedFunctionPrototypes
  964.     Widget         /* widget */,
  965.     EventMask         /* event_mask */,
  966.     _XtBoolean         /* nonmaskable */,
  967.     XtEventHandler     /* proc */,
  968.     XtPointer         /* closure */
  969. #endif
  970. );
  971.  
  972. extern void XtRemoveEventHandler(
  973. #if NeedFunctionPrototypes
  974.     Widget         /* widget */,
  975.     EventMask         /* event_mask */,
  976.     _XtBoolean         /* nonmaskable */,
  977.     XtEventHandler     /* proc */,
  978.     XtPointer         /* closure */
  979. #endif
  980. );
  981.  
  982. extern void XtAddRawEventHandler(
  983. #if NeedFunctionPrototypes
  984.     Widget         /* widget */,
  985.     EventMask         /* event_mask */,
  986.     _XtBoolean         /* nonmaskable */,
  987.     XtEventHandler     /* proc */,
  988.     XtPointer         /* closure */
  989. #endif
  990. );
  991.  
  992. extern void XtRemoveRawEventHandler(
  993. #if NeedFunctionPrototypes
  994.     Widget         /* widget */,
  995.     EventMask         /* event_mask */,
  996.     _XtBoolean         /* nonmaskable */,
  997.     XtEventHandler     /* proc */,
  998.     XtPointer         /* closure */
  999. #endif
  1000. );
  1001.  
  1002. extern void XtInsertEventHandler(
  1003. #if NeedFunctionPrototypes
  1004.     Widget         /* widget */,
  1005.     EventMask         /* event_mask */,
  1006.     _XtBoolean         /* nonmaskable */,
  1007.     XtEventHandler     /* proc */,
  1008.     XtPointer         /* closure */,
  1009.     XtListPosition     /* position */
  1010. #endif
  1011. );
  1012.  
  1013. extern void XtInsertRawEventHandler(
  1014. #if NeedFunctionPrototypes
  1015.     Widget         /* widget */,
  1016.     EventMask         /* event_mask */,
  1017.     _XtBoolean         /* nonmaskable */,
  1018.     XtEventHandler     /* proc */,
  1019.     XtPointer         /* closure */,
  1020.     XtListPosition     /* position */
  1021. #endif
  1022. );
  1023.  
  1024. extern EventMask XtBuildEventMask(
  1025. #if NeedFunctionPrototypes
  1026.     Widget         /* widget */
  1027. #endif
  1028. );
  1029.  
  1030. extern void XtAddGrab(
  1031. #if NeedFunctionPrototypes
  1032.     Widget         /* widget */,
  1033.     _XtBoolean         /* exclusive */,
  1034.     _XtBoolean         /* spring_loaded */
  1035. #endif
  1036. );
  1037.  
  1038. extern void XtRemoveGrab(
  1039. #if NeedFunctionPrototypes
  1040.     Widget         /* widget */
  1041. #endif
  1042. );
  1043.  
  1044. extern void XtProcessEvent( /* obsolete */
  1045. #if NeedFunctionPrototypes
  1046.     XtInputMask         /* mask */
  1047. #endif
  1048. );
  1049.  
  1050. extern void XtAppProcessEvent(
  1051. #if NeedFunctionPrototypes
  1052.     XtAppContext         /* app_context */,
  1053.     XtInputMask         /* mask */
  1054. #endif
  1055. );
  1056.  
  1057. extern void XtMainLoop( /* obsolete */
  1058. #if NeedFunctionPrototypes
  1059.     void
  1060. #endif
  1061. );
  1062.  
  1063. extern void XtAppMainLoop(
  1064. #if NeedFunctionPrototypes
  1065.     XtAppContext         /* app_context */
  1066. #endif
  1067. );
  1068.  
  1069. extern void XtAddExposureToRegion(
  1070. #if NeedFunctionPrototypes
  1071.     XEvent*        /* event */,
  1072.     Region         /* region */
  1073. #endif
  1074. );
  1075.  
  1076. extern void XtSetKeyboardFocus(
  1077. #if NeedFunctionPrototypes
  1078.     Widget        /* subtree */,
  1079.     Widget         /* descendent */
  1080. #endif
  1081. );
  1082.  
  1083. extern Time XtLastTimestampProcessed(
  1084. #if NeedFunctionPrototypes
  1085.     Display*        /* dpy */
  1086. #endif
  1087. );
  1088.  
  1089. /****************************************************************
  1090.  *
  1091.  * Event Gathering Routines
  1092.  *
  1093.  ****************************************************************/
  1094.  
  1095. extern XtIntervalId XtAddTimeOut( /* obsolete */
  1096. #if NeedFunctionPrototypes
  1097.     unsigned long     /* interval */,
  1098.     XtTimerCallbackProc /* proc */,
  1099.     XtPointer         /* closure */
  1100. #endif
  1101. );
  1102.  
  1103. extern XtIntervalId XtAppAddTimeOut(
  1104. #if NeedFunctionPrototypes
  1105.     XtAppContext     /* app_context */,
  1106.     unsigned long     /* interval */,
  1107.     XtTimerCallbackProc /* proc */,
  1108.     XtPointer         /* closure */
  1109. #endif
  1110. );
  1111.  
  1112. extern void XtRemoveTimeOut(
  1113. #if NeedFunctionPrototypes
  1114.     XtIntervalId     /* timer */
  1115. #endif
  1116. );
  1117.  
  1118. extern XtInputId XtAddInput( /* obsolete */
  1119. #if NeedFunctionPrototypes
  1120.     int         /* source */,
  1121.     XtPointer         /* condition */,
  1122.     XtInputCallbackProc /* proc */,
  1123.     XtPointer         /* closure */
  1124. #endif
  1125. );
  1126.  
  1127. extern XtInputId XtAppAddInput(
  1128. #if NeedFunctionPrototypes
  1129.     XtAppContext           /* app_context */,
  1130.     int         /* source */,
  1131.     XtPointer         /* condition */,
  1132.     XtInputCallbackProc /* proc */,
  1133.     XtPointer         /* closure */
  1134. #endif
  1135. );
  1136.  
  1137. extern void XtRemoveInput(
  1138. #if NeedFunctionPrototypes
  1139.     XtInputId         /* id */
  1140. #endif
  1141. );
  1142.  
  1143. extern void XtNextEvent( /* obsolete */
  1144. #if NeedFunctionPrototypes
  1145.     XEvent*         /* event */
  1146. #endif
  1147. );
  1148.  
  1149. extern void XtAppNextEvent(
  1150. #if NeedFunctionPrototypes
  1151.     XtAppContext     /* app_context */,
  1152.     XEvent*        /* event_return */
  1153. #endif
  1154. );
  1155.  
  1156. #define XtIMXEvent        1
  1157. #define XtIMTimer        2
  1158. #define XtIMAlternateInput    4
  1159. #define XtIMAll (XtIMXEvent | XtIMTimer | XtIMAlternateInput)
  1160.  
  1161. extern XtInputMask XtPending( /* obsolete */
  1162. #if NeedFunctionPrototypes
  1163.     void
  1164. #endif
  1165. );
  1166.  
  1167. extern XtInputMask XtAppPending(
  1168. #if NeedFunctionPrototypes
  1169.     XtAppContext     /* app_context */
  1170. #endif
  1171. );
  1172.  
  1173. /****************************************************************
  1174.  *
  1175.  * Random utility routines
  1176.  *
  1177.  ****************************************************************/
  1178.  
  1179. #define XtIsRectObj(object)    (_XtCheckSubclassFlag(object, (XtEnum)0x02))
  1180. #define XtIsWidget(object)    (_XtCheckSubclassFlag(object, (XtEnum)0x04))
  1181. #define XtIsComposite(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x08))
  1182. #define XtIsConstraint(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x10))
  1183. #define XtIsShell(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x20))
  1184. #define XtIsOverrideShell(widget) \
  1185.     (_XtIsSubclassOf(widget, (WidgetClass)overrideShellWidgetClass, \
  1186.              (WidgetClass)shellWidgetClass, (XtEnum)0x20))
  1187. #define XtIsWMShell(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x40))
  1188. #define XtIsVendorShell(widget)    \
  1189.     (_XtIsSubclassOf(widget, (WidgetClass)vendorShellWidgetClass, \
  1190.              (WidgetClass)wmShellWidgetClass, (XtEnum)0x40))
  1191. #define XtIsTransientShell(widget) \
  1192.     (_XtIsSubclassOf(widget, (WidgetClass)transientShellWidgetClass, \
  1193.              (WidgetClass)wmShellWidgetClass, (XtEnum)0x40))
  1194. #define XtIsTopLevelShell(widget) (_XtCheckSubclassFlag(widget, (XtEnum)0x80))
  1195. #define XtIsApplicationShell(widget) \
  1196.     (_XtIsSubclassOf(widget, (WidgetClass)applicationShellWidgetClass, \
  1197.              (WidgetClass)topLevelShellWidgetClass, (XtEnum)0x80))
  1198.  
  1199. extern void XtRealizeWidget(
  1200. #if NeedFunctionPrototypes
  1201.     Widget         /* widget */
  1202. #endif
  1203. );
  1204.  
  1205. void XtUnrealizeWidget(
  1206. #if NeedFunctionPrototypes
  1207.     Widget         /* widget */
  1208. #endif
  1209. );
  1210.  
  1211. extern void XtDestroyWidget(
  1212. #if NeedFunctionPrototypes
  1213.     Widget         /* widget */
  1214. #endif
  1215. );
  1216.  
  1217. extern void XtSetSensitive(
  1218. #if NeedFunctionPrototypes
  1219.     Widget         /* widget */,
  1220.     _XtBoolean         /* sensitive */
  1221. #endif
  1222. );
  1223.  
  1224. extern void XtSetMappedWhenManaged(
  1225. #if NeedFunctionPrototypes
  1226.     Widget         /* widget */,
  1227.     _XtBoolean         /* mapped_when_managed */
  1228. #endif
  1229. );
  1230.  
  1231. extern Widget XtNameToWidget(
  1232. #if NeedFunctionPrototypes
  1233.     Widget         /* reference */,
  1234.     _Xconst _XtString    /* names */
  1235. #endif
  1236. );
  1237.  
  1238. extern Widget XtWindowToWidget(
  1239. #if NeedFunctionPrototypes
  1240.     Display*        /* display */,
  1241.     Window         /* window */
  1242. #endif
  1243. );
  1244.  
  1245. /***************************************************************
  1246.  *
  1247.  * Arg lists
  1248.  *
  1249.  ****************************************************************/
  1250.  
  1251.  
  1252. #define XtSetArg(arg, n, d) \
  1253.     ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) ))
  1254.  
  1255. extern ArgList XtMergeArgLists(
  1256. #if NeedFunctionPrototypes
  1257.     ArgList         /* args1 */,
  1258.     Cardinal         /* num_args1 */,
  1259.     ArgList         /* args2 */,
  1260.     Cardinal         /* num_args2 */
  1261. #endif
  1262. );
  1263.  
  1264. /***************************************************************
  1265.  *
  1266.  * Vararg lists
  1267.  *
  1268.  ****************************************************************/
  1269.  
  1270. #define XtVaNestedList  "XtVaNestedList"
  1271. #define XtVaTypedArg    "XtVaTypedArg"
  1272.  
  1273. extern XtVarArgsList XtVaCreateArgsList(
  1274. #if NeedVarargsPrototypes
  1275.     XtPointer        /*unused*/, ...
  1276. #endif
  1277. );
  1278.  
  1279. /*************************************************************
  1280.  *
  1281.  * Information routines
  1282.  *
  1283.  ************************************************************/
  1284.  
  1285. #ifndef _XtIntrinsicP_h
  1286.  
  1287. /* We're not included from the private file, so define these */
  1288.  
  1289. extern Display *XtDisplay(
  1290. #if NeedFunctionPrototypes
  1291.     Widget         /* widget */
  1292. #endif
  1293. );
  1294.  
  1295. extern Display *XtDisplayOfObject(
  1296. #if NeedFunctionPrototypes
  1297.     Widget         /* object */
  1298. #endif
  1299. );
  1300.  
  1301. extern Screen *XtScreen(
  1302. #if NeedFunctionPrototypes
  1303.     Widget         /* widget */
  1304. #endif
  1305. );
  1306.  
  1307. extern Screen *XtScreenOfObject(
  1308. #if NeedFunctionPrototypes
  1309.     Widget         /* object */
  1310. #endif
  1311. );
  1312.  
  1313. extern Window XtWindow(
  1314. #if NeedFunctionPrototypes
  1315.     Widget         /* widget */
  1316. #endif
  1317. );
  1318.  
  1319. extern Window XtWindowOfObject(
  1320. #if NeedFunctionPrototypes
  1321.     Widget         /* object */
  1322. #endif
  1323. );
  1324.  
  1325. extern String XtName(
  1326. #if NeedFunctionPrototypes
  1327.     Widget         /* object */
  1328. #endif
  1329. );
  1330.  
  1331. extern WidgetClass XtSuperclass(
  1332. #if NeedFunctionPrototypes
  1333.     Widget         /* object */
  1334. #endif
  1335. );
  1336.  
  1337. extern WidgetClass XtClass(
  1338. #if NeedFunctionPrototypes
  1339.     Widget         /* object */
  1340. #endif
  1341. );
  1342.  
  1343. extern Widget XtParent(
  1344. #if NeedFunctionPrototypes
  1345.     Widget         /* widget */
  1346. #endif
  1347. );
  1348.  
  1349. #endif /*_XtIntrinsicP_h*/
  1350.  
  1351. #define XtMapWidget(widget)    XMapWindow(XtDisplay(widget), XtWindow(widget))
  1352. #define XtUnmapWidget(widget)    \
  1353.         XUnmapWindow(XtDisplay(widget), XtWindow(widget))
  1354.  
  1355. extern void XtAddCallback(
  1356. #if NeedFunctionPrototypes
  1357.     Widget         /* widget */,
  1358.     _Xconst _XtString     /* callback_name */,
  1359.     XtCallbackProc     /* callback */,
  1360.     XtPointer         /* closure */
  1361. #endif
  1362. );
  1363.  
  1364. extern void XtRemoveCallback(
  1365. #if NeedFunctionPrototypes
  1366.     Widget         /* widget */,
  1367.     _Xconst _XtString     /* callback_name */,
  1368.     XtCallbackProc     /* callback */,
  1369.     XtPointer         /* closure */
  1370. #endif
  1371. );
  1372.  
  1373. extern void XtAddCallbacks(
  1374. #if NeedFunctionPrototypes
  1375.     Widget         /* widget */,
  1376.     _Xconst _XtString    /* callback_name */,
  1377.     XtCallbackList     /* callbacks */
  1378. #endif
  1379. );
  1380.  
  1381. extern void XtRemoveCallbacks(
  1382. #if NeedFunctionPrototypes
  1383.     Widget         /* widget */,
  1384.     _Xconst _XtString     /* callback_name */,
  1385.     XtCallbackList     /* callbacks */
  1386. #endif
  1387. );
  1388.  
  1389. extern void XtRemoveAllCallbacks(
  1390. #if NeedFunctionPrototypes
  1391.     Widget         /* widget */,
  1392.     _Xconst _XtString     /* callback_name */
  1393. #endif
  1394. );
  1395.  
  1396.  
  1397. extern void XtCallCallbacks(
  1398. #if NeedFunctionPrototypes
  1399.     Widget         /* widget */,
  1400.     _Xconst _XtString     /* callback_name */,
  1401.     XtPointer         /* call_data */
  1402. #endif
  1403. );
  1404.  
  1405. extern void XtCallCallbackList(
  1406. #if NeedFunctionPrototypes
  1407.     Widget        /* widget */,
  1408.     XtCallbackList     /* callbacks */,
  1409.     XtPointer         /* call_data */
  1410. #endif
  1411. );
  1412.  
  1413. extern XtCallbackStatus XtHasCallbacks(
  1414. #if NeedFunctionPrototypes
  1415.     Widget         /* widget */,
  1416.     _Xconst _XtString     /* callback_name */
  1417. #endif
  1418. );
  1419.  
  1420. /****************************************************************
  1421.  *
  1422.  * Geometry Management
  1423.  *
  1424.  ****************************************************************/
  1425.  
  1426.  
  1427. extern XtGeometryResult XtMakeGeometryRequest(
  1428. #if NeedFunctionPrototypes
  1429.     Widget         /* widget */,
  1430.     XtWidgetGeometry*    /* request */,
  1431.     XtWidgetGeometry*    /* reply_return */
  1432. #endif
  1433. );
  1434.  
  1435. extern XtGeometryResult XtQueryGeometry(
  1436. #if NeedFunctionPrototypes
  1437.     Widget         /* widget */,
  1438.     XtWidgetGeometry*    /* intended */,
  1439.     XtWidgetGeometry*    /* preferred_return */
  1440. #endif
  1441. );
  1442.  
  1443. extern Widget XtCreatePopupShell(
  1444. #if NeedFunctionPrototypes
  1445.     _Xconst _XtString    /* name */,
  1446.     WidgetClass     /* widgetClass */,
  1447.     Widget         /* parent */,
  1448.     ArgList         /* args */,
  1449.     Cardinal         /* num_args */
  1450. #endif
  1451. );
  1452.  
  1453. extern Widget XtVaCreatePopupShell(
  1454. #if NeedVarargsPrototypes
  1455.     _Xconst _XtString    /* name */,
  1456.     WidgetClass        /* widgetClass */,
  1457.     Widget        /* parent */,
  1458.     ...
  1459. #endif
  1460. );
  1461.  
  1462. extern void XtPopup(
  1463. #if NeedFunctionPrototypes
  1464.     Widget         /* popup_shell */,
  1465.     XtGrabKind         /* grab_kind */
  1466. #endif
  1467. );
  1468.  
  1469. extern void XtPopupSpringLoaded(
  1470. #if NeedFunctionPrototypes
  1471.     Widget         /* popup_shell */
  1472. #endif
  1473. );
  1474.  
  1475. extern void XtCallbackNone(
  1476. #if NeedFunctionPrototypes
  1477.     Widget         /* widget */,
  1478.     XtPointer         /* closure */,
  1479.     XtPointer         /* call_data */
  1480. #endif
  1481. );
  1482.  
  1483. extern void XtCallbackNonexclusive(
  1484. #if NeedFunctionPrototypes
  1485.     Widget         /* widget */,
  1486.     XtPointer         /* closure */,
  1487.     XtPointer         /* call_data */
  1488. #endif
  1489. );
  1490.  
  1491. extern void XtCallbackExclusive(
  1492. #if NeedFunctionPrototypes
  1493.     Widget         /* widget */,
  1494.     XtPointer         /* closure */,
  1495.     XtPointer         /* call_data */
  1496. #endif
  1497. );
  1498.  
  1499. extern void XtPopdown(
  1500. #if NeedFunctionPrototypes
  1501.     Widget         /* popup_shell */
  1502. #endif
  1503. );
  1504.  
  1505. extern void XtCallbackPopdown(
  1506. #if NeedFunctionPrototypes
  1507.     Widget         /* widget */,
  1508.     XtPointer         /* closure */,
  1509.     XtPointer         /* call_data */
  1510. #endif
  1511. );
  1512.  
  1513. extern void XtMenuPopupAction(
  1514. #if NeedFunctionPrototypes
  1515.     Widget         /* widget */,
  1516.     XEvent*        /* event */,
  1517.     String*        /* params */,
  1518.     Cardinal*        /* num_params */
  1519. #endif
  1520. );
  1521.  
  1522. extern Widget XtCreateWidget(
  1523. #if NeedFunctionPrototypes
  1524.     _Xconst _XtString     /* name */,
  1525.     WidgetClass     /* widget_class */,
  1526.     Widget         /* parent */,
  1527.     ArgList         /* args */,
  1528.     Cardinal         /* num_args */
  1529. #endif
  1530. );
  1531.  
  1532. extern Widget XtCreateManagedWidget(
  1533. #if NeedFunctionPrototypes
  1534.     _Xconst _XtString     /* name */,
  1535.     WidgetClass     /* widget_class */,
  1536.     Widget         /* parent */,
  1537.     ArgList         /* args */,
  1538.     Cardinal         /* num_args */
  1539. #endif
  1540. );
  1541.  
  1542. extern Widget XtVaCreateWidget(
  1543. #if NeedVarargsPrototypes
  1544.     _Xconst _XtString    /* name */,
  1545.     WidgetClass        /* widget */,
  1546.     Widget        /* parent */,
  1547.     ...
  1548. #endif
  1549. );
  1550.  
  1551. extern Widget XtVaCreateManagedWidget(
  1552. #if NeedVarargsPrototypes
  1553.     _Xconst _XtString    /* name */,
  1554.     WidgetClass        /* widget_class */,
  1555.     Widget        /* parent */,
  1556.     ...
  1557. #endif
  1558. );
  1559.  
  1560. extern Widget XtCreateApplicationShell( /* obsolete */
  1561. #if NeedFunctionPrototypes
  1562.     _Xconst _XtString     /* name */,
  1563.     WidgetClass     /* widget_class */,
  1564.     ArgList         /* args */,
  1565.     Cardinal         /* num_args */
  1566. #endif
  1567. );
  1568.  
  1569. extern Widget XtAppCreateShell(
  1570. #if NeedFunctionPrototypes
  1571.     _Xconst _XtString    /* application_name */,
  1572.     _Xconst _XtString    /* application_class */,
  1573.     WidgetClass     /* widget_class */,
  1574.     Display*        /* display */,
  1575.     ArgList         /* args */,
  1576.     Cardinal         /* num_args */
  1577. #endif
  1578. );
  1579.  
  1580. extern Widget XtVaAppCreateShell(
  1581. #if NeedVarargsPrototypes
  1582.     _Xconst _XtString    /* application_name */,
  1583.     _Xconst _XtString    /* application_class */,
  1584.     WidgetClass        /* widget_class */,
  1585.     Display*        /* display */,
  1586.     ...
  1587. #endif
  1588. );
  1589.  
  1590. /****************************************************************
  1591.  *
  1592.  * Toolkit initialization
  1593.  *
  1594.  ****************************************************************/
  1595.  
  1596. extern void XtToolkitInitialize(
  1597. #if NeedFunctionPrototypes
  1598.     void
  1599. #endif
  1600. );
  1601.  
  1602. extern XtLanguageProc XtSetLanguageProc(
  1603. #if NeedFunctionPrototypes
  1604.     XtAppContext    /* app_context */,
  1605.     XtLanguageProc    /* proc */,
  1606.     XtPointer        /* client_data */
  1607. #endif
  1608. );
  1609.  
  1610. extern void XtDisplayInitialize(
  1611. #if NeedFunctionPrototypes
  1612.     XtAppContext     /* app_context */,
  1613.     Display*        /* dpy */,
  1614.     _Xconst _XtString    /* application_name */,
  1615.     _Xconst _XtString    /* application_class */,
  1616.     XrmOptionDescRec*     /* options */,
  1617.     Cardinal         /* num_options */,
  1618.     int*        /* argc */,
  1619.     char**        /* argv */
  1620. #endif
  1621. );
  1622.  
  1623. extern Widget XtAppInitialize(
  1624. #if NeedFunctionPrototypes
  1625.     XtAppContext*    /* app_context_return */,
  1626.     _Xconst _XtString    /* application_class */,
  1627.     XrmOptionDescList     /* options */,
  1628.     Cardinal         /* num_options */,
  1629.     int*        /* argc_in_out */,
  1630.     String*        /* argv_in_out */,
  1631.     String*        /* fallback_resources */,
  1632.     ArgList         /* args */,
  1633.     Cardinal         /* num_args */
  1634. #endif
  1635. );
  1636.  
  1637. extern Widget XtVaAppInitialize(
  1638. #if NeedVarargsPrototypes
  1639.     XtAppContext*    /* app_context_return */,
  1640.     _Xconst _XtString    /* application_class */,
  1641.     XrmOptionDescList    /* options */,
  1642.     Cardinal        /* num_options */,
  1643.     int*        /* argc_in_out */,
  1644.     String*        /* argv_in_out */,
  1645.     String*        /* fallback_resources */,
  1646.     ...
  1647. #endif
  1648. );
  1649.  
  1650. extern Widget XtInitialize( /* obsolete */
  1651. #if NeedFunctionPrototypes
  1652.     _Xconst _XtString     /* shell_name */,
  1653.     _Xconst _XtString     /* application_class */,
  1654.     XrmOptionDescRec*     /* options */,
  1655.     Cardinal         /* num_options */,
  1656.     int*        /* argc */,
  1657.     char**        /* argv */
  1658. #endif
  1659. );
  1660.  
  1661. extern Display *XtOpenDisplay(
  1662. #if NeedFunctionPrototypes
  1663.     XtAppContext     /* app_context */,
  1664.     _Xconst _XtString    /* display_string */,
  1665.     _Xconst _XtString    /* application_name */,
  1666.     _Xconst _XtString    /* application_class */,
  1667.     XrmOptionDescRec*    /* options */,
  1668.     Cardinal         /* num_options */,
  1669.     int*        /* argc */,
  1670.     char**        /* argv */
  1671. #endif
  1672. );
  1673.  
  1674. extern XtAppContext XtCreateApplicationContext(
  1675. #if NeedFunctionPrototypes
  1676.     void
  1677. #endif
  1678. );
  1679.  
  1680. extern void XtAppSetFallbackResources(
  1681. #if NeedFunctionPrototypes
  1682.     XtAppContext     /* app_context */,
  1683.     String*        /* specification_list */
  1684. #endif
  1685. );
  1686.  
  1687. extern void XtDestroyApplicationContext(
  1688. #if NeedFunctionPrototypes
  1689.     XtAppContext     /* app_context */
  1690. #endif
  1691. );
  1692.  
  1693. extern void XtInitializeWidgetClass(
  1694. #if NeedFunctionPrototypes
  1695.     WidgetClass     /* widget_class */
  1696. #endif
  1697. );
  1698.  
  1699. extern XtAppContext XtWidgetToApplicationContext(
  1700. #if NeedFunctionPrototypes
  1701.     Widget         /* widget */
  1702. #endif
  1703. );
  1704.  
  1705. extern XtAppContext XtDisplayToApplicationContext(
  1706. #if NeedFunctionPrototypes
  1707.     Display*        /* dpy */
  1708. #endif
  1709. );
  1710.  
  1711. extern XrmDatabase XtDatabase(
  1712. #if NeedFunctionPrototypes
  1713.     Display*        /* dpy */
  1714. #endif
  1715. );
  1716.  
  1717. extern XrmDatabase XtScreenDatabase(
  1718. #if NeedFunctionPrototypes
  1719.     Screen*        /* screen */
  1720. #endif
  1721. );
  1722.  
  1723. extern void XtCloseDisplay(
  1724. #if NeedFunctionPrototypes
  1725.     Display*        /* dpy */
  1726. #endif
  1727. );
  1728.  
  1729. extern void XtGetApplicationResources(
  1730. #if NeedFunctionPrototypes
  1731.     Widget         /* widget */,
  1732.     XtPointer         /* base */,
  1733.     XtResourceList     /* resources */,
  1734.     Cardinal         /* num_resources */,
  1735.     ArgList         /* args */,
  1736.     Cardinal         /* num_args */
  1737. #endif
  1738. );
  1739.  
  1740. extern void XtVaGetApplicationResources(
  1741. #if NeedVarargsPrototypes
  1742.     Widget        /* widget */,
  1743.     XtPointer        /* base */,
  1744.     XtResourceList    /* resources */,
  1745.     Cardinal        /* num_resources */,
  1746.     ...
  1747. #endif
  1748. );
  1749.  
  1750. extern void XtGetSubresources(
  1751. #if NeedFunctionPrototypes
  1752.     Widget         /* widget */,
  1753.     XtPointer         /* base */,
  1754.     _Xconst _XtString     /* name */,
  1755.     _Xconst _XtString     /* class */,
  1756.     XtResourceList     /* resources */,
  1757.     Cardinal         /* num_resources */,
  1758.     ArgList         /* args */,
  1759.     Cardinal         /* num_args */
  1760. #endif
  1761. );
  1762.  
  1763. extern void XtVaGetSubresources(
  1764. #if NeedVarargsPrototypes
  1765.     Widget        /* widget */,
  1766.     XtPointer        /* base */,
  1767.     _Xconst _XtString    /* name */,
  1768.     _Xconst _XtString    /* class */,
  1769.     XtResourceList    /* resources */,
  1770.     Cardinal        /* num_resources */,
  1771.     ...
  1772. #endif
  1773. );
  1774.  
  1775. extern void XtSetValues(
  1776. #if NeedFunctionPrototypes
  1777.     Widget         /* widget */,
  1778.     ArgList         /* args */,
  1779.     Cardinal         /* num_args */
  1780. #endif
  1781. );
  1782.  
  1783. extern void XtVaSetValues(
  1784. #if NeedVarargsPrototypes
  1785.     Widget        /* widget */,
  1786.     ...
  1787. #endif
  1788. );
  1789.  
  1790. extern void XtGetValues(
  1791. #if NeedFunctionPrototypes
  1792.     Widget         /* widget */,
  1793.     ArgList         /* args */,
  1794.     Cardinal         /* num_args */
  1795. #endif
  1796. );
  1797.  
  1798. extern void XtVaGetValues(
  1799. #if NeedVarargsPrototypes
  1800.     Widget        /* widget */,
  1801.     ...
  1802. #endif
  1803. );
  1804.  
  1805. extern void XtSetSubvalues(
  1806. #if NeedFunctionPrototypes
  1807.     XtPointer         /* base */,
  1808.     XtResourceList     /* resources */,
  1809.     Cardinal         /* num_resources */,
  1810.     ArgList         /* args */,
  1811.     Cardinal         /* num_args */
  1812. #endif
  1813. );
  1814.  
  1815. extern void XtVaSetSubvalues(
  1816. #if NeedVarargsPrototypes
  1817.     XtPointer        /* base */,
  1818.     XtResourceList    /* resources */,
  1819.     Cardinal        /* num_resources */,
  1820.     ...
  1821. #endif
  1822. );
  1823.  
  1824. extern void XtGetSubvalues(
  1825. #if NeedFunctionPrototypes
  1826.     XtPointer         /* base */,
  1827.     XtResourceList     /* resources */,
  1828.     Cardinal         /* num_resources */,
  1829.     ArgList         /* args */,
  1830.     Cardinal         /* num_args */
  1831. #endif
  1832. );
  1833.  
  1834. extern void XtVaGetSubvalues(
  1835. #if NeedVarargsPrototypes
  1836.     XtPointer        /* base */,
  1837.     XtResourceList    /* resources */,
  1838.     Cardinal        /* num_resources */,
  1839.     ...
  1840. #endif
  1841. );
  1842.  
  1843. extern void XtGetResourceList(
  1844. #if NeedFunctionPrototypes
  1845.     WidgetClass     /* widget_class */,
  1846.     XtResourceList*    /* resources_return */,
  1847.     Cardinal*        /* num_resources_return */
  1848. #endif
  1849. );
  1850.  
  1851. extern void XtGetConstraintResourceList(
  1852. #if NeedFunctionPrototypes
  1853.     WidgetClass     /* widget_class */,
  1854.     XtResourceList*    /* resources_return */,
  1855.     Cardinal*        /* num_resources_return */
  1856. #endif
  1857. );
  1858.  
  1859. #define XtUnspecifiedPixmap    ((Pixmap)2)
  1860. #define XtUnspecifiedShellInt    (-1)
  1861. #define XtUnspecifiedWindow    ((Window)2)
  1862. #define XtUnspecifiedWindowGroup ((Window)3)
  1863. #define XtDefaultForeground    "XtDefaultForeground"
  1864. #define XtDefaultBackground    "XtDefaultBackground"
  1865. #define XtDefaultFont        "XtDefaultFont"
  1866. #define XtDefaultFontSet    "XtDefaultFontSet"
  1867.  
  1868. #if defined(CRAY) || defined(__arm)
  1869. #if __STDC__
  1870. #define XtOffset(p_type,field) _Offsetof(p_type,field)
  1871. #else
  1872. #ifdef CRAY2
  1873. #define XtOffset(p_type,field) \
  1874.     (sizeof(int)*((unsigned int)&(((p_type)NULL)->field)))
  1875.  
  1876. #else    /* !CRAY2 */
  1877.  
  1878. #define XtOffset(p_type,field) ((unsigned int)&(((p_type)NULL)->field))
  1879.  
  1880. #endif    /* !CRAY2 */
  1881. #endif  /* __STDC__ */
  1882. #else    /* ! (CRAY || __arm) */
  1883.  
  1884. #define XtOffset(p_type,field) \
  1885.     ((Cardinal) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
  1886.  
  1887. #endif /* !CRAY */
  1888.  
  1889. #ifdef offsetof
  1890. #define XtOffsetOf(s_type,field) offsetof(s_type,field)
  1891. #else
  1892. #define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
  1893. #endif
  1894.  
  1895. /*************************************************************
  1896.  *
  1897.  * Error Handling
  1898.  *
  1899.  ************************************************************/
  1900.  
  1901. extern XtErrorMsgHandler XtAppSetErrorMsgHandler(
  1902. #if NeedFunctionPrototypes
  1903.     XtAppContext     /* app_context */,
  1904.     XtErrorMsgHandler     /* handler */
  1905. #endif
  1906. );
  1907.  
  1908. extern void XtSetErrorMsgHandler( /* obsolete */
  1909. #if NeedFunctionPrototypes
  1910.     XtErrorMsgHandler     /* handler */
  1911. #endif
  1912. );
  1913.  
  1914. extern XtErrorMsgHandler XtAppSetWarningMsgHandler(
  1915. #if NeedFunctionPrototypes
  1916.     XtAppContext     /* app_context */,
  1917.     XtErrorMsgHandler     /* handler */
  1918. #endif
  1919. );
  1920.  
  1921. extern void XtSetWarningMsgHandler( /* obsolete */
  1922. #if NeedFunctionPrototypes
  1923.     XtErrorMsgHandler     /* handler */
  1924. #endif
  1925. );
  1926.  
  1927. extern void XtAppErrorMsg(
  1928. #if NeedFunctionPrototypes
  1929.     XtAppContext     /* app_context */,
  1930.     _Xconst _XtString     /* name */,
  1931.     _Xconst _XtString    /* type */,
  1932.     _Xconst _XtString    /* class */,
  1933.     _Xconst _XtString    /* default */,
  1934.     String*        /* params */,
  1935.     Cardinal*        /* num_params */
  1936. #endif
  1937. );
  1938.  
  1939. extern void XtErrorMsg( /* obsolete */
  1940. #if NeedFunctionPrototypes
  1941.     _Xconst _XtString     /* name */,
  1942.     _Xconst _XtString    /* type */,
  1943.     _Xconst _XtString    /* class */,
  1944.     _Xconst _XtString    /* default */,
  1945.     String*        /* params */,
  1946.     Cardinal*        /* num_params */
  1947. #endif
  1948. );
  1949.  
  1950. extern void XtAppWarningMsg(
  1951. #if NeedFunctionPrototypes
  1952.     XtAppContext     /* app_context */,
  1953.     _Xconst _XtString     /* name */,
  1954.     _Xconst _XtString     /* type */,
  1955.     _Xconst _XtString     /* class */,
  1956.     _Xconst _XtString     /* default */,
  1957.     String*        /* params */,
  1958.     Cardinal*        /* num_params */
  1959. #endif
  1960. );
  1961.  
  1962. extern void XtWarningMsg( /* obsolete */
  1963. #if NeedFunctionPrototypes
  1964.     _Xconst _XtString    /* name */,
  1965.     _Xconst _XtString    /* type */,
  1966.     _Xconst _XtString    /* class */,
  1967.     _Xconst _XtString    /* default */,
  1968.     String*        /* params */,
  1969.     Cardinal*        /* num_params */
  1970. #endif
  1971. );
  1972.  
  1973. extern XtErrorHandler XtAppSetErrorHandler(
  1974. #if NeedFunctionPrototypes
  1975.     XtAppContext     /* app_context */,
  1976.     XtErrorHandler     /* handler */
  1977. #endif
  1978. );
  1979.  
  1980. extern void XtSetErrorHandler( /* obsolete */
  1981. #if NeedFunctionPrototypes
  1982.     XtErrorHandler     /* handler */
  1983. #endif
  1984. );
  1985.  
  1986. extern XtErrorHandler XtAppSetWarningHandler(
  1987. #if NeedFunctionPrototypes
  1988.     XtAppContext     /* app_context */,
  1989.     XtErrorHandler     /* handler */
  1990. #endif
  1991. );
  1992.  
  1993. extern void XtSetWarningHandler( /* obsolete */
  1994. #if NeedFunctionPrototypes
  1995.     XtErrorHandler     /* handler */
  1996. #endif
  1997. );
  1998.  
  1999. extern void XtAppError(
  2000. #if NeedFunctionPrototypes
  2001.     XtAppContext     /* app_context */,
  2002.     _Xconst _XtString    /* message */
  2003. #endif
  2004. );
  2005.  
  2006. extern void XtError( /* obsolete */
  2007. #if NeedFunctionPrototypes
  2008.     _Xconst _XtString    /* message */
  2009. #endif
  2010. );
  2011.  
  2012. extern void XtAppWarning(
  2013. #if NeedFunctionPrototypes
  2014.     XtAppContext     /* app_context */,
  2015.     _Xconst _XtString    /* message */
  2016. #endif
  2017. );
  2018.  
  2019. extern void XtWarning( /* obsolete */
  2020. #if NeedFunctionPrototypes
  2021.     _Xconst _XtString    /* message */
  2022. #endif
  2023. );
  2024.  
  2025. extern XrmDatabase *XtAppGetErrorDatabase(
  2026. #if NeedFunctionPrototypes
  2027.     XtAppContext     /* app_context */
  2028. #endif
  2029. );
  2030.  
  2031. extern XrmDatabase *XtGetErrorDatabase( /* obsolete */
  2032. #if NeedFunctionPrototypes
  2033.     void
  2034. #endif
  2035. );
  2036.  
  2037. extern void XtAppGetErrorDatabaseText(
  2038. #if NeedFunctionPrototypes
  2039.     XtAppContext     /* app_context */,
  2040.     _Xconst _XtString    /* name */,
  2041.     _Xconst _XtString    /* type */,
  2042.     _Xconst _XtString    /* class */,
  2043.     _Xconst _XtString     /* default */,
  2044.     String         /* buffer_return */,
  2045.     int         /* nbytes */,
  2046.     XrmDatabase     /* database */
  2047. #endif
  2048. );
  2049.  
  2050. extern void XtGetErrorDatabaseText( /* obsolete */
  2051. #if NeedFunctionPrototypes
  2052.     _Xconst _XtString    /* name */,
  2053.     _Xconst _XtString    /* type */,
  2054.     _Xconst _XtString    /* class */,
  2055.     _Xconst _XtString     /* default */,
  2056.     String         /* buffer_return */,
  2057.     int         /* nbytes */
  2058. #endif
  2059. );
  2060.  
  2061. /****************************************************************
  2062.  *
  2063.  * Memory Management
  2064.  *
  2065.  ****************************************************************/
  2066.  
  2067. extern char *XtMalloc(
  2068. #if NeedFunctionPrototypes
  2069.     Cardinal         /* size */
  2070. #endif
  2071. );
  2072.  
  2073. extern char *XtCalloc(
  2074. #if NeedFunctionPrototypes
  2075.     Cardinal        /* num */,
  2076.     Cardinal         /* size */
  2077. #endif
  2078. );
  2079.  
  2080. extern char *XtRealloc(
  2081. #if NeedFunctionPrototypes
  2082.     char*         /* ptr */,
  2083.     Cardinal         /* num */
  2084. #endif
  2085. );
  2086.  
  2087. extern void XtFree(
  2088. #if NeedFunctionPrototypes
  2089.     char*        /* ptr */
  2090. #endif
  2091. );
  2092.  
  2093. #ifdef XTTRACEMEMORY
  2094.  
  2095. extern char *_XtMalloc( /* implementation-private */
  2096. #if NeedFunctionPrototypes
  2097.     Cardinal    /* size */,
  2098.     char *    /* file */,
  2099.     int            /* line */
  2100. #endif               
  2101. );
  2102.  
  2103. extern char *_XtRealloc( /* implementation-private */
  2104. #if NeedFunctionPrototypes
  2105.     char *    /* ptr */,
  2106.     Cardinal    /* size */,
  2107.     char *    /* file */,
  2108.     int        /* line */
  2109. #endif
  2110. );
  2111.  
  2112. extern char *_XtCalloc( /* implementation-private */
  2113. #if NeedFunctionPrototypes
  2114.     Cardinal    /* num */,
  2115.     Cardinal     /* size */,
  2116.     char *    /* file */,
  2117.     int        /* line */
  2118. #endif
  2119. );
  2120.  
  2121. extern void _XtFree( /* implementation-private */
  2122. #if NeedFunctionPrototypes
  2123.     char *    /* ptr */
  2124. #endif
  2125. );
  2126.  
  2127. #define XtMalloc(size) _XtMalloc(size, __FILE__, __LINE__)
  2128. #define XtRealloc(ptr,size) _XtRealloc(ptr, size, __FILE__, __LINE__)
  2129. #define XtCalloc(num,size) _XtCalloc(num, size, __FILE__, __LINE__)
  2130. #define XtFree(ptr) _XtFree(ptr)
  2131.  
  2132. #endif /* ifdef XTTRACEMEMORY */
  2133.  
  2134. #define XtNew(type) ((type *) XtMalloc((unsigned) sizeof(type)))
  2135. #define XtNewString(str) \
  2136.     ((str) != NULL ? (strcpy(XtMalloc((unsigned)strlen(str) + 1), str)) : NULL)
  2137.  
  2138. /*************************************************************
  2139.  *
  2140.  *  Work procs
  2141.  *
  2142.  **************************************************************/
  2143.  
  2144. extern XtWorkProcId XtAddWorkProc( /* obsolete */
  2145. #if NeedFunctionPrototypes
  2146.     XtWorkProc         /* proc */,
  2147.     XtPointer         /* closure */
  2148. #endif
  2149. );
  2150.  
  2151. extern XtWorkProcId XtAppAddWorkProc(
  2152. #if NeedFunctionPrototypes
  2153.     XtAppContext     /* app_context */,
  2154.     XtWorkProc         /* proc */,
  2155.     XtPointer         /* closure */
  2156. #endif
  2157. );
  2158.  
  2159. extern void  XtRemoveWorkProc(
  2160. #if NeedFunctionPrototypes
  2161.     XtWorkProcId     /* id */
  2162. #endif
  2163. );
  2164.  
  2165.  
  2166. /****************************************************************
  2167.  *
  2168.  * Graphic Context Management
  2169.  *****************************************************************/
  2170.  
  2171. extern GC XtGetGC(
  2172. #if NeedFunctionPrototypes
  2173.     Widget         /* widget */,
  2174.     XtGCMask         /* valueMask */,
  2175.     XGCValues*         /* values */
  2176. #endif
  2177. );
  2178.  
  2179. extern GC XtAllocateGC(
  2180. #if NeedFunctionPrototypes
  2181.     Widget         /* widget */,
  2182.     Cardinal        /* depth */,
  2183.     XtGCMask         /* valueMask */,
  2184.     XGCValues*         /* values */,
  2185.     XtGCMask        /* dynamicMask */,
  2186.     XtGCMask        /* unusedMask */
  2187. #endif
  2188. );
  2189.  
  2190. /* This implementation of XtDestroyGC differs from the formal specification
  2191.  * for historic backwards compatibility reasons.  As other implementations
  2192.  * may conform to the spec, use of XtReleaseGC is strongly encouraged.
  2193.  */
  2194. extern void XtDestroyGC( /* obsolete */
  2195. #if NeedFunctionPrototypes
  2196.     GC             /* gc */
  2197. #endif
  2198. );
  2199.  
  2200. extern void XtReleaseGC(
  2201. #if NeedFunctionPrototypes
  2202.     Widget         /* object */,
  2203.     GC             /* gc */
  2204. #endif
  2205. );
  2206.  
  2207.  
  2208.  
  2209. extern void XtAppReleaseCacheRefs(
  2210. #if NeedFunctionPrototypes
  2211.     XtAppContext    /* app_context */,
  2212.     XtCacheRef*        /* cache_ref */
  2213. #endif
  2214. );
  2215.  
  2216. extern void XtCallbackReleaseCacheRef(
  2217. #if NeedFunctionPrototypes
  2218.     Widget         /* widget */,
  2219.     XtPointer         /* closure */,    /* XtCacheRef */
  2220.     XtPointer         /* call_data */
  2221. #endif
  2222. );
  2223.  
  2224. extern void XtCallbackReleaseCacheRefList(
  2225. #if NeedFunctionPrototypes
  2226.     Widget         /* widget */,
  2227.     XtPointer         /* closure */,    /* XtCacheRef* */
  2228.     XtPointer         /* call_data */
  2229. #endif
  2230. );
  2231.  
  2232. extern void XtSetWMColormapWindows(
  2233. #if NeedFunctionPrototypes
  2234.     Widget         /* widget */,
  2235.     Widget*        /* list */,
  2236.     Cardinal        /* count */
  2237. #endif
  2238. );
  2239.  
  2240. extern String XtFindFile(
  2241. #if NeedFunctionPrototypes
  2242.     _Xconst _XtString    /* path */,
  2243.     Substitution    /* substitutions */,
  2244.     Cardinal         /* num_substitutions */,
  2245.     XtFilePredicate    /* predicate */
  2246. #endif
  2247. );
  2248.  
  2249. extern String XtResolvePathname(
  2250. #if NeedFunctionPrototypes
  2251.     Display*        /* dpy */,
  2252.     _Xconst _XtString    /* type */,
  2253.     _Xconst _XtString    /* filename */,
  2254.     _Xconst _XtString    /* suffix */,
  2255.     _Xconst _XtString    /* path */,
  2256.     Substitution    /* substitutions */,
  2257.     Cardinal        /* num_substitutions */,
  2258.     XtFilePredicate     /* predicate */
  2259. #endif
  2260. );
  2261.  
  2262. /****************************************************************
  2263.  *
  2264.  * Selections
  2265.  *
  2266.  *****************************************************************/
  2267.  
  2268. #define XT_CONVERT_FAIL (Atom)0x80000001
  2269.     
  2270. extern void XtDisownSelection(
  2271. #if NeedFunctionPrototypes
  2272.     Widget         /* widget */,
  2273.     Atom         /* selection */,
  2274.     Time         /* time */
  2275. #endif
  2276. );
  2277.  
  2278. extern void XtGetSelectionValue(
  2279. #if NeedFunctionPrototypes
  2280.     Widget         /* widget */,
  2281.     Atom         /* selection */,
  2282.     Atom         /* target */,
  2283.     XtSelectionCallbackProc /* callback */,
  2284.     XtPointer         /* closure */,
  2285.     Time         /* time */
  2286. #endif
  2287. );
  2288.  
  2289. extern void XtGetSelectionValues(
  2290. #if NeedFunctionPrototypes
  2291.     Widget         /* widget */,
  2292.     Atom         /* selection */,
  2293.     Atom*        /* targets */,
  2294.     int         /* count */,
  2295.     XtSelectionCallbackProc /* callback */,
  2296.     XtPointer*        /* closures */,
  2297.     Time         /* time */
  2298. #endif
  2299. );
  2300.  
  2301. extern void XtAppSetSelectionTimeout(
  2302. #if NeedFunctionPrototypes
  2303.     XtAppContext     /* app_context */,
  2304.     unsigned long     /* timeout */
  2305. #endif
  2306. );
  2307.  
  2308. extern void XtSetSelectionTimeout( /* obsolete */
  2309. #if NeedFunctionPrototypes
  2310.     unsigned long     /* timeout */
  2311. #endif
  2312. );
  2313.  
  2314. extern unsigned long XtAppGetSelectionTimeout(
  2315. #if NeedFunctionPrototypes
  2316.     XtAppContext     /* app_context */
  2317. #endif
  2318. );
  2319.  
  2320. extern unsigned long XtGetSelectionTimeout( /* obsolete */
  2321. #if NeedFunctionPrototypes
  2322.     void
  2323. #endif
  2324. );
  2325.  
  2326. extern XSelectionRequestEvent *XtGetSelectionRequest(
  2327. #if NeedFunctionPrototypes
  2328.     Widget         /* widget */,
  2329.     Atom         /* selection */,
  2330.     XtRequestId     /* request_id */
  2331. #endif
  2332. );
  2333.  
  2334. extern void XtGetSelectionValueIncremental(
  2335. #if NeedFunctionPrototypes
  2336.     Widget         /* widget */,
  2337.     Atom         /* selection */,
  2338.     Atom         /* target */,
  2339.     XtSelectionCallbackProc /* selection_callback */,
  2340.     XtPointer         /* client_data */,
  2341.     Time         /* time */
  2342. #endif
  2343. );
  2344.  
  2345. extern void XtGetSelectionValuesIncremental(
  2346. #if NeedFunctionPrototypes
  2347.     Widget         /* widget */,
  2348.     Atom         /* selection */,
  2349.     Atom*        /* targets */,
  2350.     int         /* count */,
  2351.     XtSelectionCallbackProc /* callback */,
  2352.     XtPointer*        /* client_data */,
  2353.     Time         /* time */
  2354. #endif
  2355. );
  2356.  
  2357. extern void XtGrabKey(
  2358. #if NeedFunctionPrototypes
  2359.     Widget         /* widget */,
  2360.     _XtKeyCode         /* keycode */,
  2361.     Modifiers         /* modifiers */,
  2362.     _XtBoolean         /* owner_events */,
  2363.     int         /* pointer_mode */,
  2364.     int         /* keyboard_mode */
  2365. #endif
  2366. );
  2367.  
  2368. extern void XtUngrabKey(
  2369. #if NeedFunctionPrototypes
  2370.     Widget         /* widget */,
  2371.     _XtKeyCode         /* keycode */,
  2372.     Modifiers         /* modifiers */
  2373. #endif
  2374. );
  2375.  
  2376. extern int XtGrabKeyboard(
  2377. #if NeedFunctionPrototypes
  2378.     Widget         /* widget */,
  2379.     _XtBoolean         /* owner_events */,
  2380.     int         /* pointer_mode */,
  2381.     int         /* keyboard_mode */,
  2382.     Time         /* time */
  2383. #endif
  2384. );
  2385.  
  2386. extern void XtUngrabKeyboard(
  2387. #if NeedFunctionPrototypes
  2388.     Widget         /* widget */,
  2389.     Time         /* time */
  2390. #endif
  2391. );
  2392.  
  2393. extern void XtGrabButton(
  2394. #if NeedFunctionPrototypes
  2395.     Widget         /* widget */,
  2396.     int         /* button */,
  2397.     Modifiers         /* modifiers */,
  2398.     _XtBoolean         /* owner_events */,
  2399.     unsigned int    /* event_mask */,
  2400.     int         /* pointer_mode */,
  2401.     int         /* keyboard_mode */,
  2402.     Window         /* confine_to */,
  2403.     Cursor         /* cursor */
  2404. #endif
  2405. );
  2406.  
  2407. extern void XtUngrabButton(
  2408. #if NeedFunctionPrototypes
  2409.     Widget         /* widget */,
  2410.     unsigned int    /* button */,
  2411.     Modifiers         /* modifiers */
  2412. #endif
  2413. );
  2414.  
  2415. extern int XtGrabPointer(
  2416. #if NeedFunctionPrototypes
  2417.     Widget         /* widget */,
  2418.     _XtBoolean         /* owner_events */,
  2419.     unsigned int    /* event_mask */,
  2420.     int         /* pointer_mode */,
  2421.     int         /* keyboard_mode */,
  2422.     Window         /* confine_to */,
  2423.     Cursor         /* cursor */,
  2424.     Time         /* time */
  2425. #endif
  2426. );
  2427.  
  2428. extern void XtUngrabPointer(
  2429. #if NeedFunctionPrototypes
  2430.     Widget         /* widget */,
  2431.     Time         /* time */
  2432. #endif
  2433. );
  2434.  
  2435. extern void XtGetApplicationNameAndClass(
  2436. #if NeedFunctionPrototypes
  2437.     Display*        /* dpy */,
  2438.     String*        /* name_return */,
  2439.     String*        /* class_return */
  2440. #endif
  2441. );
  2442.  
  2443.  
  2444. /*
  2445.  *    Predefined Resource Converters
  2446.  */
  2447.  
  2448.  
  2449. /* String converters */
  2450.  
  2451. extern Boolean XtCvtStringToAcceleratorTable(
  2452. #if NeedFunctionPrototypes
  2453.     Display*    /* dpy */,
  2454.     XrmValuePtr /* args */,    /* none */
  2455.     Cardinal*   /* num_args */,    
  2456.     XrmValuePtr    /* fromVal */,
  2457.     XrmValuePtr    /* toVal */,
  2458.     XtPointer*    /* closure_ret */
  2459. #endif
  2460. );
  2461.  
  2462. extern Boolean XtCvtStringToAtom(
  2463. #if NeedFunctionPrototypes
  2464.     Display*    /* dpy */,
  2465.     XrmValuePtr /* args */,    /* Display */
  2466.     Cardinal*   /* num_args */,    
  2467.     XrmValuePtr    /* fromVal */,
  2468.     XrmValuePtr    /* toVal */,
  2469.     XtPointer*    /* closure_ret */
  2470. #endif
  2471. );
  2472.  
  2473. extern Boolean XtCvtStringToBoolean(
  2474. #if NeedFunctionPrototypes
  2475.     Display*    /* dpy */,
  2476.     XrmValuePtr /* args */,    /* none */
  2477.     Cardinal*   /* num_args */,    
  2478.     XrmValuePtr    /* fromVal */,
  2479.     XrmValuePtr    /* toVal */,
  2480.     XtPointer*    /* closure_ret */
  2481. #endif
  2482. );
  2483.  
  2484. extern Boolean XtCvtStringToBool(
  2485. #if NeedFunctionPrototypes
  2486.     Display*    /* dpy */,
  2487.     XrmValuePtr /* args */,    /* none */
  2488.     Cardinal*   /* num_args */,    
  2489.     XrmValuePtr    /* fromVal */,
  2490.     XrmValuePtr    /* toVal */,
  2491.     XtPointer*    /* closure_ret */
  2492. #endif
  2493. );
  2494.  
  2495. extern Boolean XtCvtStringToCursor(
  2496. #if NeedFunctionPrototypes
  2497.     Display*    /* dpy */,
  2498.     XrmValuePtr /* args */,    /* Display */
  2499.     Cardinal*   /* num_args */,    
  2500.     XrmValuePtr    /* fromVal */,
  2501.     XrmValuePtr    /* toVal */,
  2502.     XtPointer*    /* closure_ret */
  2503. #endif
  2504. );
  2505.  
  2506. extern Boolean XtCvtStringToDimension(
  2507. #if NeedFunctionPrototypes
  2508.     Display*    /* dpy */,
  2509.     XrmValuePtr /* args */,    /* none */
  2510.     Cardinal*   /* num_args */,    
  2511.     XrmValuePtr    /* fromVal */,
  2512.     XrmValuePtr    /* toVal */,
  2513.     XtPointer*    /* closure_ret */
  2514. #endif
  2515. );
  2516.  
  2517. extern Boolean XtCvtStringToDisplay(
  2518. #if NeedFunctionPrototypes
  2519.     Display*    /* dpy */,
  2520.     XrmValuePtr /* args */,    /* none */
  2521.     Cardinal*   /* num_args */,    
  2522.     XrmValuePtr    /* fromVal */,
  2523.     XrmValuePtr    /* toVal */,
  2524.     XtPointer*    /* closure_ret */
  2525. #endif
  2526. );
  2527.  
  2528. extern Boolean XtCvtStringToFile(
  2529. #if NeedFunctionPrototypes
  2530.     Display*    /* dpy */,
  2531.     XrmValuePtr /* args */,    /* none */
  2532.     Cardinal*   /* num_args */,    
  2533.     XrmValuePtr    /* fromVal */,
  2534.     XrmValuePtr    /* toVal */,
  2535.     XtPointer*    /* closure_ret */
  2536. #endif
  2537. );
  2538.  
  2539. extern Boolean XtCvtStringToFloat(
  2540. #if NeedFunctionPrototypes
  2541.     Display*    /* dpy */,
  2542.     XrmValuePtr /* args */,    /* none */
  2543.     Cardinal*   /* num_args */,    
  2544.     XrmValuePtr    /* fromVal */,
  2545.     XrmValuePtr    /* toVal */,
  2546.     XtPointer*    /* closure_ret */
  2547. #endif
  2548. );
  2549.  
  2550. extern Boolean XtCvtStringToFont(
  2551. #if NeedFunctionPrototypes
  2552.     Display*    /* dpy */,
  2553.     XrmValuePtr /* args */,    /* Display */
  2554.     Cardinal*   /* num_args */,    
  2555.     XrmValuePtr    /* fromVal */,
  2556.     XrmValuePtr    /* toVal */,
  2557.     XtPointer*    /* closure_ret */
  2558. #endif
  2559. );
  2560.  
  2561. extern Boolean XtCvtStringToFontSet(
  2562. #if NeedFunctionPrototypes
  2563.     Display*    /* dpy */,
  2564.     XrmValuePtr /* args */,    /* Display, locale */
  2565.     Cardinal*   /* num_args */,    
  2566.     XrmValuePtr    /* fromVal */,
  2567.     XrmValuePtr    /* toVal */,
  2568.     XtPointer*    /* closure_ret */
  2569. #endif
  2570. );
  2571.  
  2572. extern Boolean XtCvtStringToFontStruct(
  2573. #if NeedFunctionPrototypes
  2574.     Display*    /* dpy */,
  2575.     XrmValuePtr /* args */,    /* Display */
  2576.     Cardinal*   /* num_args */,    
  2577.     XrmValuePtr    /* fromVal */,
  2578.     XrmValuePtr    /* toVal */,
  2579.     XtPointer*    /* closure_ret */
  2580. #endif
  2581. );
  2582.  
  2583. extern Boolean XtCvtStringToInt(
  2584. #if NeedFunctionPrototypes
  2585.     Display*    /* dpy */,
  2586.     XrmValuePtr /* args */,    /* none */
  2587.     Cardinal*   /* num_args */,    
  2588.     XrmValuePtr    /* fromVal */,
  2589.     XrmValuePtr    /* toVal */,
  2590.     XtPointer*    /* closure_ret */
  2591. #endif
  2592. );
  2593.  
  2594. extern Boolean XtCvtStringToInitialState(
  2595. #if NeedFunctionPrototypes
  2596.     Display*    /* dpy */,
  2597.     XrmValuePtr /* args */,    /* none */
  2598.     Cardinal*   /* num_args */,    
  2599.     XrmValuePtr    /* fromVal */,
  2600.     XrmValuePtr    /* toVal */,
  2601.     XtPointer*    /* closure_ret */
  2602. #endif
  2603. );
  2604.  
  2605. extern Boolean XtCvtStringToPixel(
  2606. #if NeedFunctionPrototypes
  2607.     Display*    /* dpy */,
  2608.     XrmValuePtr /* args */,    /* Screen, Colormap */
  2609.     Cardinal*   /* num_args */,    
  2610.     XrmValuePtr    /* fromVal */,
  2611.     XrmValuePtr    /* toVal */,
  2612.     XtPointer*    /* closure_ret */
  2613. #endif
  2614. );
  2615.  
  2616. #define XtCvtStringToPosition XtCvtStringToShort
  2617.  
  2618. extern Boolean XtCvtStringToShort(
  2619. #if NeedFunctionPrototypes
  2620.     Display*    /* dpy */,
  2621.     XrmValuePtr /* args */,    /* none */
  2622.     Cardinal*   /* num_args */,    
  2623.     XrmValuePtr    /* fromVal */,
  2624.     XrmValuePtr    /* toVal */,
  2625.     XtPointer*    /* closure_ret */
  2626. #endif
  2627. );
  2628.  
  2629. extern Boolean XtCvtStringToTranslationTable(
  2630. #if NeedFunctionPrototypes
  2631.     Display*    /* dpy */,
  2632.     XrmValuePtr /* args */,    /* none */
  2633.     Cardinal*   /* num_args */,    
  2634.     XrmValuePtr    /* fromVal */,
  2635.     XrmValuePtr    /* toVal */,
  2636.     XtPointer*    /* closure_ret */
  2637. #endif
  2638. );
  2639.  
  2640. extern Boolean XtCvtStringToUnsignedChar(
  2641. #if NeedFunctionPrototypes
  2642.     Display*    /* dpy */,
  2643.     XrmValuePtr /* args */,    /* none */
  2644.     Cardinal*   /* num_args */,    
  2645.     XrmValuePtr    /* fromVal */,
  2646.     XrmValuePtr    /* toVal */,
  2647.     XtPointer*    /* closure_ret */
  2648. #endif
  2649. );
  2650.  
  2651. extern Boolean XtCvtStringToVisual(
  2652. #if NeedFunctionPrototypes
  2653.     Display*    /* dpy */,
  2654.     XrmValuePtr /* args */,    /* Screen, depth */
  2655.     Cardinal*   /* num_args */,    
  2656.     XrmValuePtr    /* fromVal */,
  2657.     XrmValuePtr    /* toVal */,
  2658.     XtPointer*    /* closure_ret */
  2659. #endif
  2660. );
  2661.  
  2662. /* int converters */
  2663.  
  2664. extern Boolean XtCvtIntToBoolean(
  2665. #if NeedFunctionPrototypes
  2666.     Display*    /* dpy */,
  2667.     XrmValuePtr /* args */,    /* none */
  2668.     Cardinal*   /* num_args */,    
  2669.     XrmValuePtr    /* fromVal */,
  2670.     XrmValuePtr    /* toVal */,
  2671.     XtPointer*    /* closure_ret */
  2672. #endif
  2673. );
  2674.  
  2675. extern Boolean XtCvtIntToBool(
  2676. #if NeedFunctionPrototypes
  2677.     Display*    /* dpy */,
  2678.     XrmValuePtr /* args */,    /* none */
  2679.     Cardinal*   /* num_args */,    
  2680.     XrmValuePtr    /* fromVal */,
  2681.     XrmValuePtr    /* toVal */,
  2682.     XtPointer*    /* closure_ret */
  2683. #endif
  2684. );
  2685.  
  2686. extern Boolean XtCvtIntToColor(
  2687. #if NeedFunctionPrototypes
  2688.     Display*    /* dpy */,
  2689.     XrmValuePtr /* args */,    /* Screen, Colormap */
  2690.     Cardinal*   /* num_args */,    
  2691.     XrmValuePtr    /* fromVal */,
  2692.     XrmValuePtr    /* toVal */,
  2693.     XtPointer*    /* closure_ret */
  2694. #endif
  2695. );
  2696.  
  2697. #define XtCvtIntToDimension XtCvtIntToShort
  2698.  
  2699. extern Boolean XtCvtIntToFloat(
  2700. #if NeedFunctionPrototypes
  2701.     Display*    /* dpy */,
  2702.     XrmValuePtr /* args */,    /* none */
  2703.     Cardinal*   /* num_args */,    
  2704.     XrmValuePtr    /* fromVal */,
  2705.     XrmValuePtr    /* toVal */,
  2706.     XtPointer*    /* closure_ret */
  2707. #endif
  2708. );
  2709.  
  2710. extern Boolean XtCvtIntToFont(
  2711. #if NeedFunctionPrototypes
  2712.     Display*    /* dpy */,
  2713.     XrmValuePtr /* args */,    /* none */
  2714.     Cardinal*   /* num_args */,    
  2715.     XrmValuePtr    /* fromVal */,
  2716.     XrmValuePtr    /* toVal */,
  2717.     XtPointer*    /* closure_ret */
  2718. #endif
  2719. );
  2720.  
  2721. extern Boolean XtCvtIntToPixel(
  2722. #if NeedFunctionPrototypes
  2723.     Display*    /* dpy */,
  2724.     XrmValuePtr /* args */,    /* none */
  2725.     Cardinal*   /* num_args */,    
  2726.     XrmValuePtr    /* fromVal */,
  2727.     XrmValuePtr    /* toVal */,
  2728.     XtPointer*    /* closure_ret */
  2729. #endif
  2730. );
  2731.  
  2732. extern Boolean XtCvtIntToPixmap(
  2733. #if NeedFunctionPrototypes
  2734.     Display*    /* dpy */,
  2735.     XrmValuePtr /* args */,    /* none */
  2736.     Cardinal*   /* num_args */,    
  2737.     XrmValuePtr    /* fromVal */,
  2738.     XrmValuePtr    /* toVal */,
  2739.     XtPointer*    /* closure_ret */
  2740. #endif
  2741. );
  2742.  
  2743. #define XtCvtIntToPosition XtCvtIntToShort
  2744.  
  2745. extern Boolean XtCvtIntToShort(
  2746. #if NeedFunctionPrototypes
  2747.     Display*    /* dpy */,
  2748.     XrmValuePtr /* args */,    /* none */
  2749.     Cardinal*   /* num_args */,    
  2750.     XrmValuePtr    /* fromVal */,
  2751.     XrmValuePtr    /* toVal */,
  2752.     XtPointer*    /* closure_ret */
  2753. #endif
  2754. );
  2755.  
  2756. extern Boolean XtCvtIntToUnsignedChar(
  2757. #if NeedFunctionPrototypes
  2758.     Display*    /* dpy */,
  2759.     XrmValuePtr /* args */,    /* none */
  2760.     Cardinal*   /* num_args */,    
  2761.     XrmValuePtr    /* fromVal */,
  2762.     XrmValuePtr    /* toVal */,
  2763.     XtPointer*    /* closure_ret */
  2764. #endif
  2765. );
  2766.  
  2767. /* Color converter */
  2768.  
  2769. extern Boolean XtCvtColorToPixel(
  2770. #if NeedFunctionPrototypes
  2771.     Display*    /* dpy */,
  2772.     XrmValuePtr /* args */,    /* none */
  2773.     Cardinal*   /* num_args */,    
  2774.     XrmValuePtr    /* fromVal */,
  2775.     XrmValuePtr    /* toVal */,
  2776.     XtPointer*    /* closure_ret */
  2777. #endif
  2778. );
  2779.  
  2780. /* Pixel converter */
  2781.  
  2782. #define XtCvtPixelToColor XtCvtIntToColor
  2783.  
  2784.  
  2785. _XFUNCPROTOEND
  2786.  
  2787. #endif /*_XtIntrinsic_h*/
  2788. /* DON'T ADD STUFF AFTER THIS #endif */
  2789.